const nums = [2, 2, 2, 4, 2]

export function random(min, max) {
  return Math.floor(Math.random() * (max - min)) + min;
}

export function next() {
  return nums[random(0, 4)]
}
